class Valleyers::Show::Logs::Show::DocumetTypesController < ApplicationController
  def show
    @documet_type = DocumetType.find params[:documet_type_id]
  end
  
  def edit
    @documet_type = DocumetType.find params[:id]
  end

  def update
    @documet_type = DocumetType.find params[:id]
    render :edit unless @documet_type.update_attributes params[:documet_type]
  end

  def destroy
    @documet_type = DocumetType.find params[:id]
    @documet_type.destroy
  end
end
